package aop.helloworld;

public class Main {
	public static void main(String[] args) {
		
		Calculator calculator = new CalculatorImpl();
		Calculator proxy = new CalculatorProxy(calculator).getLogProxy();
		System.out.println(proxy.getClass().getName());
		
		int result = proxy.add(1, 1);
		System.out.println(result);
		
		result = proxy.sub(2, 1);
		System.out.println(result);
		
		result = proxy.mul(3, 1);
		System.out.println(result);
		
		result = proxy.div(25, 5);
		System.out.println(result);
	}
}
